package com.apex.crm.dao;

import com.apex.crm.base.BaseMapper;
import com.apex.crm.model.ZTreeMode;
import com.apex.crm.vo.Module;

import java.util.List;

public interface ModuleMapper extends BaseMapper<Module,Integer> {
    int deleteByPrimaryKey(Integer id);

    int insert(Module record);

    //int insertSelective(Module record);

    Module selectByPrimaryKey(Integer id);

    //int updateByPrimaryKeySelective(Module record);

    int updateByPrimaryKey(Module record);

    //查询所有可授权资源
    public List<ZTreeMode> queryAllModules();


    //查询所有菜单
    public List<Module> queryModules();


    Module selectByGradeAndName(Module module);

    Module selectByGradeAndUrl(Module module);

    Module selectByOptValue(String optValue);

    Integer selectCountByParentId(Integer mid);


}